FROM openjdk:8-jdk-alpine
RUN set -ex && \
    apk add tini && \
    apk add --virtual .fetch-deps curl tar && \
    [ ! -e /etc/nsswitch.conf ] && echo ‘hosts: files dns‘ > /etc/nsswitch.conf

# docker指令支持 https://download.docker.com/linux/static/
RUN curl -fL -o docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-20.10.9.tgz && tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ && rm docker.tgz && apk del .fetch-deps
